export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: '@/pages/user/Login',
          },
        ],
      },
    ],
  },
  {
    name: 'home',
    path: '/home',
    icon: 'HomeOutlined',
    component: '@/pages/Home',
  },
  {
    name: 'admin',
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    component: '@/pages/Personnel',
    routes: [
      // {
      //   name: 'admin_manag',
      //   path: '/admin/admin_manag',
      //   icon: 'UserAddOutlined',
      //   component: '@/pages/Admin_manag',
      // },
      {
        name: 'users',
        path: '/admin/users',
        icon: 'UserOutlined',
        component: '@/pages/Users',
      },
    ],
  },
  {
    name: 'announcements',
    path: '/announcements',
    icon: 'MenuUnfoldOutlined',
    component: '@/pages/Announcements',
    routes: [
      // {
      //   name: 'notice',
      //   path: '/announcements/notice',
      //   icon: 'UserAddOutlined',
      //   component: '@/pages/Notice',
      // },
      {
        name: 'announce',
        path: '/announcements/announce',
        icon: 'UserOutlined',
        component: '@/pages/Announce',
      },
    ],
  },
  {
    name: 'carousel',
    path: '/carousel',
    icon: 'PlayCircleOutlined',
    component: '@/pages/Carousel',
  },
  // {
  //   name: 'yellowPage',
  //   path: '/yellowPage',
  //   icon: 'ShoppingOutlined',
  //   component: '@/pages/YellowPage',
  // },
  {
    name: 'circle',
    path: '/circle',
    icon: 'FileImageOutlined',
    component: '@/pages/Circle',
  },
  {
    name: 'sort',
    path: '/sort',
    icon: 'SortAscendingOutlined',
    component: '@/pages/Sort',
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    component: '@/pages/404',
  },
];
